Creation parameters:
- atom parent
- integer id
- sequence text
- integer x [= -1]
- integer y [= -1]
- integer cx [= -1]
- integer cy [= -1]
- atom style [= 0]
Style choices:
- wxBU_LEFT Left-justifies the label. WIN32 only.
- wxBU_TOP Aligns the label to the top of the button. WIN32 only.
- wxBU_RIGHT Right-justifies the bitmap label. WIN32 only.
- wxBU_BOTTOM Aligns the label to the bottom of the button. WIN32 only.
To trap a button click, use the wxEVT_COMMAND_BUTTON_CLICKED event:
code
ex:
procedure on_click( atom this, atom event_type, atom id, atom event )
-- do stuff here
end procedure
set_event_handler( my_button, get_id(my_button), wxEVT_COMMAND_BUTTON_CLICKED,
routine_id("on_click"))
endcode
proc set_button_label( atom button, sequence label )
Parent Topics:
Classes
Controls
Subtopics:
wxBitmapButton
wxDefButton
Category: wxButton
Changes the label on a button.